<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    function add(num1, num2) {
      let num = num1 + num2
      if (num2 + 1 <= 100) {
        return add(num, num2+1)
      } else {
        return num
      }
    }
    console.log(add(1, 2));
  </script>
</body>

</html>